package net.wofly.sale.order.service;

import net.wofly.sale.order.domain.OrderType;
import net.wofly.sale.order.domain.RoleOrderType;

import java.util.List;

public interface IRoleOrderTypeService {
    
    /**
     * 增加或修改
     *
     * @param entity
     * @return
     */
    public RoleOrderType save(RoleOrderType entity);
    
    /**
     * 删除
     *
     * @param entity
     * @return
     */
    public void delete(RoleOrderType entity);
    
    /**
     * 根据主键ID删除
     *
     * @param key
     * @return
     */
    public void delete(String key);
    
    /**
     * 根据主键查询
     *
     * @param key
     * @return
     */
    public RoleOrderType findOne(String key);
    
    public List<RoleOrderType> save(List<RoleOrderType> entityList);
    
    List<OrderType> findByRoleID(String roleID);
    
    List<OrderType> findByRoleIDAndStatus(String roleID, Integer status);
    
}
